﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using COM.Web;
using SampleApp.Web.Service;

namespace SampleApp.Web
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : COM.Web.MvcWebApplication
    {
        public MvcApplication()
            : base("SampleApp.Web.Default.Controllers")
        {
        }

        protected override void Application_Start()
        {
            //用于测试路由规则
            FileLogService.Instance.ClearLog();
            base.Application_Start();
            //RouteDebug.RouteDebugger.RewriteRoutesForTesting(RouteTable.Routes);
            AppStartService.Instance.Start();
        }

    }


}